const TOKENKEY = 'token_key'
// 清除token
function removeToken() {
  localStorage.removeItem(TOKENKEY)
}

// 获取token
function getToken() {
  return localStorage.getItem(TOKENKEY)
}

// 设置token
function setToken(date) {
  localStorage.setItem(TOKENKEY, date)
}
export {
  setToken,
  getToken,
  removeToken
}